import request from '@/utils/request'

// 查询【请填写功能名称】列表
export function listLevel(query) {
  return request({
    url: '/manages/vehicle-level/queryCarLevel',
    method: 'get',
    params: query
  })
}

export function listLevelAll() {
  return request({
    url: '/manages/vehicle-level/queryCarLevelAll',
    method: 'get'
  })
}

// 查询【请填写功能名称】详细
export function getLevel(levelId) {
  return request({
    url: '/manages/vehicle-level/queryCarLevelById/' + levelId,
    method: 'get'
  })
}

// 新增【请填写功能名称】
export function addLevel(data) {
  return request({
    url: '/manages/vehicle-level/addCarLevel',
    method: 'post',
    data: data
  })
}

// 修改【请填写功能名称】
export function updateLevel(data) {
  return request({
    url: '/manages/vehicle-level/updateCarLevel',
    method: 'post',
    data: data
  })
}

// 删除【请填写功能名称】
export function delLevel(levelId) {
  return request({
    url: '/manages/vehicle-level/deleteCarLevelById/' + levelId,
    method: 'delete'
  })
}
